Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add validating webhook for KeptnTaskDefinition #1514

Merged
merged 47 commits into from
Jun 7, 2023

Conversation

geoffrey1330
Copy link
Member

@geoffrey1330 geoffrey1330 commented Jun 2, 2023

Fixes #1486 Added webhook validation for TaskDefinitions in the lifecycle operator

@geoffrey1330 geoffrey1330 requested a review from a team as a code owner June 2, 2023 09:05
@netlify
Copy link

netlify bot commented Jun 2, 2023

Deploy Preview for keptn-lifecycle-toolkit ready!

Name Link
🔨 Latest commit d6a4800
🔍 Latest deploy log https://app.netlify.com/sites/keptn-lifecycle-toolkit/deploys/6479b0c6f1636a000893ebb4
😎 Deploy Preview https://deploy-preview-1514--keptn-lifecycle-toolkit.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@geoffrey1330 geoffrey1330 force-pushed the feat/1486/validating_webhook branch from d6a4800 to 2af1475 Compare June 2, 2023 13:20
@github-actions github-actions bot added documentation Improvements or additions to documentation helm ops labels Jun 2, 2023
@github-actions github-actions bot removed documentation Improvements or additions to documentation ops helm labels Jun 2, 2023
Copy link
Member

@rakshitgondwal rakshitgondwal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need this webhook to work when a KeptnTaskDefinition gets created or updated, thus we'll need to return the validateKeptnTaskDefinition function on ValidateCreate and ValidateUpdate.

geoffrey1330 and others added 10 commits June 2, 2023 18:16
…r container spec but not both

Signed-off-by: geoffrey1330 <[email protected]>
Copy link
Member

@rakshitgondwal rakshitgondwal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Made a small typo, sorry. Can you fix this? @geoffrey1330

@sonarqubecloud
Copy link

sonarqubecloud bot commented Jun 6, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@odubajDT odubajDT merged commit d55a7ef into keptn:main Jun 7, 2023
@odubajDT
Copy link
Contributor

odubajDT commented Jun 7, 2023

@rakshitgondwal @geoffrey1330 awesome job! Thank you very much for contribution :)

@rakshitgondwal
Copy link
Member

Kudos to @geoffrey1330!

@geoffrey1330
Copy link
Member Author

Kudos to @geoffrey1330!

Thanks for the support @rakshitgondwal

StackScribe pushed a commit to StackScribe/lifecycle-toolkit that referenced this pull request Jun 22, 2023
Signed-off-by: odubajDT <[email protected]>
Signed-off-by: geoffrey1330 <[email protected]>
Signed-off-by: Geoffrey Israel <[email protected]>
Co-authored-by: odubajDT <[email protected]>
Co-authored-by: Rakshit Gondwal <[email protected]>
Co-authored-by: Florian Bacher <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Introduce a validating webhook for TaskDefinitions
5 participants